Asset Api
Functions
Adds the given asset to a local asset source.
Adds a local asset source. Its ID has to be unique.
Adds a custom asset source. Its ID has to be unique.
Applies an asset to the active scene using custom AssetSource.applyAsset function.
Applies an asset to the block using custom AssetSource.applyAsset function.
Applies an asset to the active scene at the given placement. An asset source with a custom AssetSource.applyAsset function ignores the placement.
Apply an asset property.
Notifies the engine that the contents of an asset source changed.
This is the default implementation of applying asset to the active scene. This means a design block is instantiated and configured according to the Asset.meta properties.
This is the default implementation of applying asset object to an existing block. This means it replaces the block content with asset content, if compatible.
This is the default implementation of applying asset to the active scene, placing the new block as requested. An asset that holds a transform preset or a scene replaces the page or the scene, so it uses neither the parent nor the center. An archived block collection keeps its own positions and uses only the parent.
Fetch a specific asset by ID from an asset source.
Finds all registered asset sources.
Finds assets of a given type in a specific asset source.
Queries the asset source's credits info.
Queries the asset source's license info.
Get the asset source's list of supported mime types.
Subscribe to asset source addition events.
Subscribe to asset source removal events.
Subscribe to asset source's content update events.
Removes the specified asset from its local asset source.
Removes an asset source with the given ID.